<%--
  Created by IntelliJ IDEA.
  User: Ashin
  Date: 2021/1/15
  Time: 17:09
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>参数绑定demo</title>
</head>
<body>
<div style="margin: 0 40px">
    <h6>示例一</h6>
    <a href="input/path_variable/hello">pathvariable</a>
    <h6>示例二</h6>
    <form action="input/request_param">
        <input type="text" name="name"/>
        <input type="number" name="age"/>
        <input type="submit" value="提交">
    </form>
    <h6>示例三</h6>
    <a href="input/request_header">request_header</a>

    <h6>示例四</h6>
    <a href="input/cookie_value">cookie_value</a>

    <h6>示例五</h6>
    <a href="input/reuest_body">request_body无法通过web页面演示，请使用http</a>

    <h6>示例六 plain form param演示</h6>
    <form action="input/plain_form">
        <input type="text" name="name"/>
        <input type="number" name="age"/>
        <input type="radio" name="sex" value="true"/>
        <input type="radio" name="sex" value="false"/>


        <input type="submit" value="提交">
    </form>


    <h6>示例七 pojo演示</h6>
    <form action="input/pojo" enctype="application/x-www-form-urlencoded">
        <input type="text" name="name"/>
        <input type="number" name="age"/>
        <input type="text" name="address.province"/>
        <input type="text" name="address.city"/>
        <input type="text" name="paramsMap.ddd"/>
        <input type="text" name="paramsMap.xxx"/>

        <input type="submit" value="提交">
    </form>

    <h6>示例七-1 map演示</h6>
    <form action="input/map" enctype="application/x-www-form-urlencoded">
        <input type="text" name="name"/>
        <input type="number" name="age"/>
        <input type="text" name="address.province"/>
        <input type="text" name="address.city"/>

        <input type="submit" value="提交">
    </form>

    <h6>示例八 绑定servlet相关api对象演示</h6>
    <form action="input/servlet_api_object" enctype="application/x-www-form-urlencoded">
        <input type="text" name="name"/>
        <input type="number" name="age"/>
        <input type="text" name="address.province"/>
        <input type="text" name="address.city"/>

        <input type="submit" value="提交">
    </form>

</div>
</body>
</html>
